﻿namespace ElisVK
{
    using Utils;
    using Utils.HotKeys;

    public class Settings : BindableObject
    {
        private bool _useHotKeys;

        private bool _useScrobbling;

        public string Bookmarks { get; set; }

        public string SynchronizationPath { get; set; }

        public bool UseHotKeys
        {
            get { return _useHotKeys; }
            
            set
            {
                if (_useHotKeys == value)
                    return;

                _useHotKeys = value;
                OnPropertyChanged("UseHotKeys");
            }
        }

        public bool UseScrobbling
        {
            get { return _useScrobbling; }

            set
            {
                if (_useScrobbling == value)
                    return;

                _useScrobbling = value;
                OnPropertyChanged("UseHotKeys");
            }
        }

        public HotKeysCollection HotKeys { get; set; }

        public void InitializeByDefault()
        {
            Bookmarks = string.Empty;
            _useHotKeys = true;
            _useScrobbling = false;

            HotKeys = new HotKeysCollection();
            HotKeys.InitializeByDefault();
        }
    }
}
